﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using MySql.Data.MySqlClient;
using MySql.Data.Types;
using TAMS;

namespace TAMS.TA
{
    public partial class Courses : System.Web.UI.Page
    {
        string strProvider = Resource1.databaseConnection;
        string id;
 

        protected void Page_Load(object sender, EventArgs e)
        {
            ((Menu)Master.FindControl("Menu1")).Items[0].Selected = true;


            id = (string)Session["userName"];
            if (id == null)
                Response.Redirect("../login.aspx");

            if (GridView1.Rows.Count == 0)
                Label1.Visible = true;
            else Label1.Visible = false;
        }

      
    }
}